from util.auxiliary import convert

class Commander:
    def __init__(self, config_path):
        self.config_path = config_path
        self.power_message_dict =  None
        self.key_message_dict = None
        self.discrete_message_dict = None
        self.linux_message_dict = None
        self.flash_message_dict = None
        self.check_message_dict = None
        self.init_message_dict = None

    def connect(self):
        (
            self.power_message_dict, self.key_message_dict,
            self.discrete_message_dict, self.linux_message_dict,
            self.flash_message_dict, self.check_message_dict,
            self.init_message_dict
        ) = convert(self.config_path)


if __name__ == "__main__":
    commander = Commander()

    commander.connect()

    print(commander.power_message_dict)